<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>教育资源-编辑资料</title>
	<link rel="stylesheet" href="css/common.css">
	<link rel="stylesheet" href="css/editData.css">
</head>
<body>
	<div id="header"></div>
	<div class="mainBg">
		<div class="mainBgMid clearfix">
			<div class="leftNav">
			</div>
			<div class="rightContent">
				<p class="titP">修改密码</p>
				<ul class="passWordLine">
					<li>
						<label for="nowPassWord">当前密码:</label>
						<input type="password" placeholder="" id="nowPassWord" maxlength="10" >
						<span class="redTip">请密码</span>
					</li>
					<li>
						<label for="nowPassWord">新密码:</label>
						<input type="password" placeholder="" id="newPassWord" maxlength="10">
						<span class="redTip">请输入新密码</span>
					</li>
					<li class="lastMar">
						<label for="nowPassWord">确认密码:</label>
						<input type="password" placeholder="" id="newPassWord" maxlength="10">
						<span class="redTip">请输入新密码</span>
					</li>
				</ul>
				<a href="" class="btnSave">保存</a>
			</div>
		</div>
	</div>
	<div class="footerBot"></div>
	<script src="./js/jquery.js"></script>
	<script src="./js/fxtpl.plus.js"></script>
	<script>
		// save Btn click 
		$(".btnSave").on("click",function(){
			var inputNow = $(".passWordLine").find("input");
			var redTip = $(".redTip");
			inputNow.each(function(){
				$(this).removeClass("redBorder");
			});
			redTip.each(function(){
				$(this).css("display","none");
			});
			if(inputNow.eq(0).val()==""){
				inputNow.eq(0).addClass("redBorder");
				inputNow.eq(0).siblings(".redTip").css("display","inline-block");
			}else if(inputNow.eq(1).val()==""){
				inputNow.eq(1).addClass("redBorder");
				inputNow.eq(1).siblings(".redTip").css("display","inline-block");
			}else if(inputNow.eq(2).val()==""){
				inputNow.eq(2).addClass("redBorder");
				inputNow.eq(2).siblings(".redTip").css("display","inline-block");
			}else{
				window.location.href = "tesachSpace.html";
			}
			return false;
		})

		 var dataClass = {"dataClass":7};
		 var header = Fxtpl.render('./weight/header.html',dataClass);
		 $('#header').html(header);
		 var sildeBar = { rankNum:3};
		 var leftNavBar = Fxtpl.render('./weight/LeftsideBar.html',sildeBar);
		 $(".leftNav").html(leftNavBar);
	</script>
</body>
</html>